package org.example.commonapi.domain.onlineCode;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Data
@Document(collection = "commit_own")
@AllArgsConstructor
@NoArgsConstructor
public class CommitOwn {
    private String id;
    @Field("problem_id")
    private String problemId;
    private String username;
    private Boolean status;

    public CommitOwn(String problemId, String username, Boolean status) {
        this.problemId = problemId;
        this.username = username;
        this.status = status;
    }

    /*
     * 后续个人提交相关拓展继续往下写
     */
}
